package com.xbongbong.paas.enums;

import com.xbongbong.i18n.util.I18nMessageUtil;
import com.xbongbong.saas.enums.XbbRefTypeEnum;

/**
 * Description: 流程中saas应用筛选项
 * @author 李杰
 * @date 2019/1/24 10:43
 * @version v1.0
 * @since v1.0
 */
public enum ProcessSaasAppEnum {

    /**
     * CRM
     */
    CRM(XbbRefTypeEnum.CRM.getCode(), XbbRefTypeEnum.CRM.getAlias(), "enum.xbbRefType.name.crm"),
    /**
     * JXC
     */
    JXC(XbbRefTypeEnum.JXC.getCode(), XbbRefTypeEnum.JXC.getAlias(), "enum.xbbRefType.name.jxc"),
    /**
     * JXC
     */
    FUND_MANAGEMENT(XbbRefTypeEnum.FUND_MANAGEMENT.getCode(), XbbRefTypeEnum.FUND_MANAGEMENT.getAlias(), "enum.xbbRefType.name.fund_management"),
    /**
     * 工单
     */
    WORK_ORDER(XbbRefTypeEnum.WORK_ORDER.getCode(), XbbRefTypeEnum.WORK_ORDER.getAlias(), "enum.xbbRefType.name.work_order"),
    /**
     * 市场管理
     */
    MARKET_MANAGEMENT(XbbRefTypeEnum.MARKET_MANAGEMENT.getCode(), XbbRefTypeEnum.MARKET_MANAGEMENT.getAlias(), "enum.xbbRefType.name.market_management"),
    /**
     * 经销商
     */
    DISTRIBUTOR(XbbRefTypeEnum.DISTRIBUTOR.getCode(), XbbRefTypeEnum.DISTRIBUTOR.getAlias(), "enum.xbbRefType.name.distributor"),
    /**
     * 订单中心
     */
    ORDER_CENTER(XbbRefTypeEnum.ORDER_CENTER.getCode(), XbbRefTypeEnum.ORDER_CENTER.getAlias(), "enum.xbbRefType.name.order_center"),

    /**
     * 新工单中心
     */
    WORK_ORDER_V2_CENTER(XbbRefTypeEnum.WORK_ORDER_V2_CENTER.getCode(), XbbRefTypeEnum.WORK_ORDER_V2_CENTER.getAlias(), "enum.xbbRefType.name.work_order_v2_center"),
    ;

    private Integer type;

    private String alias;

    private String memo;

    ProcessSaasAppEnum(Integer type, String alias, String memo) {
        this.type = type;
        this.alias = alias;
        this.memo = memo;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public String getAlias() {
        return alias;
    }

    public void setAlias(String alias) {
        this.alias = alias;
    }

    public String getMemo() {
        return I18nMessageUtil.getMessage(memo);
    }

    public void setMemo(String memo) {
        this.memo = memo;
    }

}
